package com.ruoyi.project.dataviewSystem.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 历史数据对象 c_datavalue --------
 * 
 * @author wangshuo
 * @date 2021-01-07
 */
public class CDatavalue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 厂站code */
    @Excel(name = "厂站code")
    private String orgcode;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String codename;

    /** 采集标识 */
    @Excel(name = "采集标识")
    private String datacode;

    /** 采集值 */
    @Excel(name = "采集值")
    private BigDecimal numvalue;

    /** 数据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "数据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datadate;

    /** 类型id */
    @Excel(name = "类型id")
    private Long dataitemid;

    /** 备用1 */
    @Excel(name = "备用1")
    private String textvalue;

    /** 备用2 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备用2", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inputdate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrgcode(String orgcode) 
    {
        this.orgcode = orgcode;
    }

    public String getOrgcode() 
    {
        return orgcode;
    }
    public void setCodename(String codename) 
    {
        this.codename = codename;
    }

    public String getCodename() 
    {
        return codename;
    }
    public void setDatacode(String datacode) 
    {
        this.datacode = datacode;
    }

    public String getDatacode() 
    {
        return datacode;
    }
    public void setNumvalue(BigDecimal numvalue)
    {
        this.numvalue = numvalue;
    }

    public BigDecimal getNumvalue()
    {
        return numvalue;
    }
    public void setDatadate(Date datadate) 
    {
        this.datadate = datadate;
    }

    public Date getDatadate() 
    {
        return datadate;
    }
    public void setDataitemid(Long dataitemid) 
    {
        this.dataitemid = dataitemid;
    }

    public Long getDataitemid() 
    {
        return dataitemid;
    }
    public void setTextvalue(String textvalue) 
    {
        this.textvalue = textvalue;
    }

    public String getTextvalue() 
    {
        return textvalue;
    }
    public void setInputdate(Date inputdate) 
    {
        this.inputdate = inputdate;
    }

    public Date getInputdate() 
    {
        return inputdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orgcode", getOrgcode())
            .append("codename", getCodename())
            .append("datacode", getDatacode())
            .append("numvalue", getNumvalue())
            .append("datadate", getDatadate())
            .append("dataitemid", getDataitemid())
            .append("textvalue", getTextvalue())
            .append("inputdate", getInputdate())
            .toString();
    }
}
